SLEEP
Section: MINTLIB LIBRARY FUNCTIONS
(3)
Updated: 3 March 1993
Index
Return to Main Contents
NAME
sleep, usleep - suspend execution for interval
SYNOPSIS
#include <unistd.h>
unsigned sleep(unsigned seconds);
void usleep(unsigned long usec); // should be of type unsigned long
DESCRIPTION
The current process is supended from execution for the number
of seconds (sleep) or microseconds (usleep) specified by the
argument. Sleep returns early if a signal is caught; after the
signal handler has returned, sleep will return the "unslept"
amount. If no signal was caught, and after the full amount of
of time (and possibly somewhat longer) has passed, execution
is resumed.
SEE ALSO
alarm(3),
Fselect(2),
Pause(2),
Psigpause(2),
Talarm(2)
NOTES
On UN*X, usleep is of type unsigned int.
Under TOS or MiNT before 0.95, these routines do a busy wait
until enough time has passed.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- NOTES
-
This document was created by
man2html,
using the manual pages.
Time: 11:14:46 GMT, June 22, 2025